//
//  TYTheme+Custom.m
//  TYOEMConfig
//
//  Created by huangjj on 2020/3/31.
//
#if TARGET_OS_IOS

#import "TYTheme+Custom.h"

@implementation TYTheme (Custom)

+ (void)registeCustomColor:(NSDictionary *)colorDic {
    if (colorDic.allValues.count == 0) return;
    
    [colorDic.allKeys enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        [self.theme setValue:[colorDic objectForKey:obj] forKey:obj];
    }];
}

@end
#endif
